﻿using AutoMapper;
using Warehouse.Domain;
using Warehouse.Domain.DTO;
using static Warehouse.API.Applcation.CommandHandlers.OutShipCommandHandlers.CreateOutShipCommandHandlers;

namespace Warehouse.API.Dtos
{
    public class AreaProFiles:Profile
    {
        public AreaProFiles()
        {
            //盘点添加
            CreateMap<ADDInventoryDTO, Inventory>().ReverseMap();
            //入库新增
            CreateMap<StockRoom, EnterStoragesAddDto>().ReverseMap();
            //入库新增
            CreateMap<StockRoom, EnterStoreagesUpdateDto>().ReverseMap();

            //盘点修改
            CreateMap<UpdInventoryDTO, Inventory>().ReverseMap();

            //报损新增
            CreateMap<Injure, AddInjureDto>().ReverseMap();
            //移库新增
            CreateMap<AddMovelibraryDTO, Movelibrary>().ReverseMap();
            //移库修改
            CreateMap<UpdMovelibraryDTO, Movelibrary>().ReverseMap();


            //出库添加
            CreateMap<AddOutShipDTO, OutShip>().ReverseMap();
            //出库添加
            CreateMap<Allocate, AddAllocateDto>().ReverseMap();

            //修改出库
             CreateMap<UptOutShipDTO, OutShip>().ReverseMap();

            //产品修改
            CreateMap<Products, UptPro>().ReverseMap();
        }
    }
}
